package com.ruoyi.omp.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.omp.api.domain.FeSurety;
import com.ruoyi.omp.api.factory.RemoteSuretyFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteSuretyService", value = ServiceNameConstants.OMP_LIFE_SERVICE, fallbackFactory =
        RemoteSuretyFactory.class)
public interface RemoteSuretyService {

    @PostMapping(value = "/feSurety/add")
    R addSurety(@RequestBody FeSurety feSurety);
}
